﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Users {

    /// <summary>
    /// This interface is used for VISS.VN
    /// Used this interface to implement operations on UserAppearanceProfile table
    /// </summary>
    public interface IUserAppearanceProfile {

        /// <summary>
        /// Inserts the UserApperanceProfileEnt item into system.
        /// </summary>
        /// <param name="item">The UserApperanceProfileEnt item.</param>
        /// <returns>Return true if success, otherwise return false</returns>
        bool Insert(UserApperanceProfileEnt item);

        /// <summary>
        /// Updates the UserApperanceProfileEnt item.
        /// </summary>
        /// <param name="item">The UserApperanceProfileEnt item.</param>
        /// <returns>Return true if success, otherwise return false</returns>
        bool Update(UserApperanceProfileEnt item);

        /// <summary>
        /// Gets the UserApperanceProfileEnt by user key.
        /// </summary>
        /// <param name="userKey">The user key.</param>
        /// <returns>
        /// Return UserApperanceProfileEnt if exists, otherwise return null
        /// </returns>
        UserApperanceProfileEnt GetByUserKey(string userKey);
    }
}
